<template>
  <div class="member-home">
    <HomeOverview />
    <h1>{{ msg }}</h1>
    <HomePanel title="收藏的商品" >
      <GoodsItem v-for="i in 4" :key="i" :goods="goods" />
    </HomePanel>
    <HomePanel title="我的足迹">
      <GoodsItem v-for="i in 4" :key="i" :goods="goods" />
    </HomePanel>
  </div>
</template>

<script setup>
import { ref } from 'vue'
// 🔔 组件只需要导入，无需注册
import GoodsItem from '@/views/Category/components/goods-item.vue'
import HomeOverview from './components/home-overview.vue'
import HomePanel from './components/home-panel.vue'
// 🔔 数据只需要定义，不需要写 return 返回了
const goods = {
  id: '1147023',
  name: '自煮火锅不排队 麦饭石不粘鸳鸯火锅',
  picture: 'https://yanxuan-item.nosdn.127.net/fcdcb840a0f5dd754bb8fd2157579012.jpg',
  desc: '清汤鲜香 红汤劲爽',
  price: '159.00'
}
const msg = ref('Hello')

</script>

<style scoped lang="less">

</style>
